# Description: MATE için Kontrol Merkezi
# URL: http://www.mate-desktop.org/
# Packager: yasarciv67@gmail.com
# Depends on: intltool itstool mate-desktop mate-menus mate-settings-daemon marco xorg-libxscrnsaver 

name=mate-control-center
version=1.18.1
release=1
source=(http://pub.mate-desktop.org/releases/${version%.*}/$name-$version.tar.xz)

build() {
  cd $name-$version
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --sbindir=/usr/bin \
        --localstatedir=/var \
        --disable-update-mimedb

    #https://bugzilla.gnome.org/show_bug.cgi?id=656231
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
  make DESTDIR=$PKG install
  rm $PKG/usr/share/applications/mimeinfo.cache
}
